home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 9465 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.0 KB

  1. Path: newshost.uwo.ca!usenet
  2. From: witold@mustang.uwo.ca (Witold A. Batorowicz)
  3. Newsgroups: comp.lang.c
  4. Subject: UNIX C experts
  5. Date: 10 Mar 1996 09:20:45 GMT
  6. Organization: IBM
  7. Message-ID: <4hu6td$752@falcon.ccs.uwo.ca>
  8. NNTP-Posting-Host: ts3-13.slip.uwo.ca
  9. Mime-Version: 1.0
  10. Content-Type: Text/Plain; charset=US-ASCII
  11. X-Authenticated: witold@ts3-13.slip.uwo.ca
  12. X-Newsreader: WinVN 0.99.7
  13.  
  14. Hello!
  15.     I actually have two questions:
  16. 1. How do we debug a program written in C with either dbx or gdb that has 
  17. arguments passed to the main(). Eg. Suppose my program is called test, 
  18. therefore I would call it: test arg1 arg2. I tried gdb test arg1 arg2 but it 
  19. doesn't work, and the documentation is not very intuitive...;-(
  20.  
  21. 2. I tired my program with gdb and dbx debuggers. They work (see the symbol 
  22. table). When I try my program with xxgdb I get the message that the symbol 
  23. table is not there. Go figure. By the way, I did compile my source with -g 
  24. switch. 
  25.  
  26. If you can help, please e-mail me at witold@mustang.uwo.ca
  27. Thank you in advance
  28. Witold
  29.  
  30.